Rewriting new inmemory storage.