Folder cache invalidation minor optimization