I'm checking queries made by a purge and I saw this:
It needs to have some cache.
Here is the call graph and call count for that code in DiscussionTools: https://performance.wikimedia.org/xhgui/run/symbol?id=61ae46afebb32a41e58d4f13&symbol=MediaWiki%5CExtension%5CDiscussionTools%5CHooks%5CHookUtils%3A%3AisAvailableForTitle
Fixing this would remove something on 1k query/sec at least. Let me know if you have reproducing the problem