Calculate normalizer out of the loop.