Cache cleanup

Removes previously unknown files from the cache so they can be loaded properly the next time.