Removable bootloader delay

Could you change the bootloader to look for some kind of header or footer byte sequence in the hex file (that could be appended or pre-pended to the file in the build process)? Unless I misunderstand where this delay occurs...