of3dGraphics: optimize cached primitives