Improve performance of loging in