Refactor and more protections to DiskCrawlCache.