Performance optimizations and monitoring