Efficient mongo batching.