Various hacks to deal with the need to search very deep into raw_match ordered list