Use built-in functions and pre-calculated data tables for maximum speed!