Optimizations to logging of requests