Logging optimizations