intelligently queue writes.