better logging performance for raw logs