Batched CDC writes for improved speed.

CDC writes can be batched to improve the throughput. In my testing this is almost twice as fast.