Add an optimization to the binary_search for identical val/array metadata