More Efficient Code Help

Maybe:
https://forum.arduino.cc/t/executing-multiple-commands-with-1-command/628681/5

Also from the darkages:
https://forum.arduino.cc/t/controlling-multiple-pins-at-the-same-time/88013/2

Added:
As you did not indicate the Arduino uC you are working on, procedures for port writing is uC specific; however this post goes into what would be necessary.
https://forum.arduino.cc/t/portd-on-due/341743/5