Small optimizations in perform routines.