CPP-164 Write batches