Add API to generate and consume cached bytecode