willSendResponse plugin hook with query batching

Hi,

I was testing the willSendResponse plugin hook and I noticed that it gets called once per request, which is fine.

But since I use query batching, in a particular scenario I want to execute code only once after all queries are executed in the case they are batched, in the same way the context function is executed only once regardless of how many queries are batched together.

Is there a simple way to achieve this?

Any help is appreciated, thanks!