One other issue that you might try once you have the bugs worked out, is turning off the checks for Integer overflows. I found that that change boosted speed considerably. Of course, then there aren't any integer overflow checks, but do you really need them?