Optimized module loading for forking or non-forking processes
