Switched IndexedDB to track existing IDs