Improving performance with an ordered collection