Doing some time calculations only once.

Magic values still exist.