This may be done with just one function, like `path_hash`, no classes needed, and then:

```
Import._path_cache = {};
// to put:
Import._path_cache[path_hash(str)] = val;
// to get:
var val = Import._path_cache[path_hash(str)] 
```