How to optimize assigning materials to multiple actors?


I’ve made a simple blueprint, that assigns the selected material to all the actors of the specific blueprint. This is how the BP looks:

Now is there any way to optimize this even further, since for each click on the button, the for loop has to be executed (and I’m sure that for loops are computationally expensive).

Thank you.