Update texture of various geometries

Hello, would there be a way to update the textures like the following code of several geometries at the same time?

By sending them 1 to 1 the loading time is longer.

      const tapaMaterialOutput = session
        .getOutputByName("tapa")
        .find((o) => o.material === undefined);

      tapaMaterialOutput.freeze = false;

      await tapaMaterialOutput.updateOutputContent([{
        format: "material",
        data: {
          bitmaptexture: texturas[opcVariantValues[id].cuadriColorTapa],
          roughness: 1,
          materialpreset: 1,
          version: "2.0"
        }
      }]);

      tapaMaterialOutput.freeze = true;