Staging class
Writeback every N queries