Implemented .save() with indexes for MemoryDatastore