Improve performance of logging statements.