uncomment caching and fix for small locations without imports or exports