Store frequently used functions in locals