Using large fixed-size buffers adds significant overheads. Instead, scale the buffer to the batch size.