Using `!!doAssert` increases performance by 25% over the current implementation. I'm going to perf test your other solution, but that one is looking good.