Performance optimization when a lot of component are used