Use of precalculated and stored values to speed up calculations