[Optimize] limit the vertex lookup time to O(1).