Live Search: Search query loops over all tables even after max search results have been found
When executing a live search, we loop over all tables defined in the TCA. After this search is complete, we then slice the search array and throw away everything we don't need.
For better performance, we should stop searching as soon as we've found enough results.
(issue imported from #M17177)