Save each loaded module env to compiler memory