Remove stale cache entries.