Tuned some of the hottest functions to speed up the runtime a _lot_.