Optimize debug logs