Avoid copying when performing batch operations