Optimizes debug messages