removed the primitives member and the call to cache all primitives