Elastic::RepositoriesSearch#find_commits_by_message_with_elastic calls Gitaly n+1 times per invocation

Elastic::RepositoriesSearch#find_commits_by_message_with_elastic calls Gitaly n+1 times per invocation

See https://gitlab.com/gitlab-org/gitlab-ee/blob/e4aeca5eb44ace56736e556e403ddd67cdd04c36/app/models/concerns/elastic/repositories_search.rb#L43

Failing tests:

rspec ./spec/features/es_global_search_spec.rb:87
rspec ./spec/features/es_group_search_spec.rb:102