avoid copy in Cache.get if already in the right place
infrastructure to build and use native optimizer