cache watching files and imports for performance