Avoid useless square root computations.