Sorry for the delay in getting back to you. We hadn't tried those optimizations, but they did help a lot. We'll try tinkering with it some more, its still a little slow but miles faster than it was before.
Good tip for the RAM, we'll check that as well.
Thanks for the tips @twisted1919 !