Overwrite existing records in IndexedStore (Fixes #2182)
Optimize pathgrid store