I'm a bit confused by the necessity to create this skeleton structure - it looks like the SceneCache constructor already generates header and root at least (not sure about sampleTimes). Surely the caller shouldn't ever be responsible for knowing about the internals of the storage structure?