bootloader: Reduce the time spent in image validation when waking from deep sleep See merge request espressif/esp-idf!5140