Flushing dirty items at a configurable interval.

Previously, we were flushing (persisting) on every mutation.