ENH: calculate norm only once