This improves restore performance by several orders of magniture by not going through the whole tree recursively when we can anticipate that no match will ever occur.