Improve the performance of outputting structured logging.