Went through and added some speed tweaks

In places where it was safe, I switched to using more multithreading in
the ORM. Still a lot that I can do there to improve things though.