reduce huge number of derefs and handle that diff can be of lower qual, now a hybrid of old version but single loop
reduce huge number of derefs and handle that diff can be of lower qual, now a hybrid of old version but single loop

cancerit/cgpCaVEManPostProcessing,cancerit/cgpCaVEManPostProcessing