Added back code from the c_cablast_2_0 repository to prevent unnecessary calls to decode_edit_script