Performance optimizations.