slight optimizations in frequently executed locations