use valid bits to avoid unnecessary machine trace metric recomputations