Fix: remove reliance on caching in codegen, ensures consistency of codegen between switched backends See merge request inject/frontend!441