Added some simple caching of already-loaded target files.