in reply to keep a module in shared memory
You could create a server with POE that runs and will accept asynchronous requests. This will allow you to load the modules once and then just handle the requests.
The Cookbook has some good examples