Almost independence and irreducibility in simple finite and algebraic groups