Use shared pointer for bytecode