Avoid pointless scan of entire table in collapse-wildcard-sequences