First test batch on the new algorithm ran into performance issues that makes it kind of painful to use, but it slashed the error in half compared to the original code. With a sample size of 1 it's not as if that's meaningful, but I've made some adjustments aimed at improving performance and I'll see how that does after staff lunches are finished.