Improved performance of the logger