Optimization on collection alias resolution