Thanks, I'll try that and let you guys know if it worked. If this works then I think it's preferable to having the complex object run in a separate process and exposed via an API since this would in effect serialize the access to it when several threads make a call to the API and request access to that object. I am trying to increase concurrency as much as possible without creating multiple copies of that large Bayesian model.
Let's hope shared_clone works...