Validate cache files before use.