Performance and output optimizations