Simplified code around batching of log inserts