slight efficiency tweak on the perReadQuality calculations in C++