Improve field definitions cache file handling