Reduce memory consumption for logger