Use a more efficient data structure.