Fix potential bug where cache could be corrupted while QuickDex is running