Transpile: fix cache usage