How to change spriteFrame of 500+ nodes (or prefabs)?

Hi all
I’m going to build a map by dynamically creating many tiles (sprites or prefabs) with same spriteFrame but different position & rotation at the game’s onLoad().

In middle of game I want to change all the tiles’ images (spriteFrame or anything) at once. But I think to loop through all tiles & change every single spriteFrame is absolutely kinda stupid and low-performance way.

Can anyone please help me with a better way? Thanks a lot !