I think you might have misunderstood my comment; I was referring to the bullet point under "What didn't work":
> Reduction speed: The computation of normalized temperature, z, took a surprisingly long time. I’d like to look into what is holding up that computation.