Fixing caching to get it to the correct local directory.
Gid abstraction isn't needed anymore.
Extracting loading into a method to be used to load the other dependencies.