bytecode optimization