Fix a T7 hang, use QS earlier on small inputs