Set Cookie for more Domains

Hi, We have an T3 Installation with 50+ Domains. But we want to show the Cookiebanner only at the first Time.
If the User navigate thought the Domains, we don't want to show it anymore.
I think i can do this with set_cookie_for_domain field. Is this right ?

Is it possible to use a function there ? Because if we add or remove a Domain we have to change all Domains by hand.

Do you have an idea how we can manage this ?
Thanks Oliver

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information