Linear-Speed Vertex Cache Optimization