Improve performance of R front end of OpenMx