As I understand it, an MLB file is compiled in its own, initially empty, namespace. Only the modules for MLB dependencies would be loaded, so the saved module for the MLB file would depend only on the modules of its dependencies. Is the issue that loadModule/saveModule are tracking module dependencies independently of namespaces?
Essentially, yes. I could be wrong, but from what I've seen (and tried), it seeems to require all previously exported modules, regardless of whether values are actually shared. The program I attached in my previous mail shows the problem: the second module does not load without the first.
Also, my apologies for the delay, but I've finally found the time to push the cache branch on github. For now it is still missing the actual export based cache, which I'll also push when I can finish cleaning it up.