add proper flushing to persistent dictionary storage providers