Simplify verification and search only once.