Optimize `multiarray_search` when looking for keys by adding `multiarray_search_key` function