Working NaCl app but Monte Carlo object is created for each call