Previous implementation of View Staff Thread Permission required extra queries to work in a search context.
This update no longer requires separate queries per search result post/thread, and introduces fetches the data in the single query at the start.