Temporary fix for restart with big caches.