Added vertex cache optimization