Good work! :-)
(Another fine post to serve as documentation)
Just a note for readers who might wonder why this crazy computer scientist is bragging about a few millisecond improvements. As I like to repeat: any small number multiplied by tens of millions is no longer small. We’re close to 100 million blocks these days. Optimizations like this can literally save the day.