Small performance optimizations.