Getting an average color from a Texture Sample

Ok, I have a solution.
In case anybody else is wondering, here it is:

So instead of importing the texture as a texture sample, I imported it as a parameter texture object now, and fed it into 2 different texture sample nodes. This way I later just have to replace one texture in the instance, but still can apply 2 different texture coordinates.

like this: