This PR prevent making tiny writes during state healing, by only performing the batch-write if the accumulated data is large enough to be meaningful.