Added a version of BasePathLoader with caching