Update search.cpp

Try to save a little more time on intermediate search.
Bench: 8494174