Replaces the cache array with as list for easier look-ups during cache invalidation checks.
Replaces the cache array with a list.