Move CacheLocalTransform into a class, testing