Custom WASM plugin: connection pool for accessing a third party service

Hi!

I'm evaluating the plugin system of traefik and i wonder what are the facts i need to face when using plugins.
The plugin should talk to a third party service. My understanding of the plugin is:
Every request calls the plugins. So if my plugin opens a connection to a third party service, there would be at least one connection per request. Is that correct?

Having dozens of thousand requests per second would lead to dozens of thousands of connections to my third party service.
My question is: can i implement the plugins to share some data, like connection pools?

Update: I think what i really need is something that lives beyond the context of a request. Some state e.g. a client connection that gets initialized somewhere and is passed to the plugin along with the http request.

Cheers Armin