This I think about as a maybe last step of optimizing in a completed code. But during development I like more using names of assets because pointing at them through an array means to add a potential point of failure in - and I know myself - choosing the wrong one and later wondering about issues.