compiler: move render caching into index.js

body: temporarly stop sharing bodies on clone