Bootloader without turning pins on/off when booting up

When the uC is reset, all IO pins go to INPUT state until the sketch set them to outputs as needed.
I don't think you can avoid that.
Maybe you want to go bootloaderless and have your sketch start immediately upon reset, and be able to call your pinModes faster for the outputs.
Or used DDR to set them as outputs followed by PORTx commands to set them high low.
Could probably have that as the first couple of lines in void setup.