The sleep deprivation was starting to impact my physical health so I cut the caffeine out a year ago, and now it’s difficult for me to pull more than one late night a week. The sleep benefits have been great, and in that time period I moved into a chief engineer role with a lot of travel and customer interactions and less straight technical work. Overall I have higher quality output despite fewer hours of focus time, might be a different story if I was still needing to produce the same quantity of code.
I find coding tends to have a dopamine effect and keeps my brain engaged well into the night, but other activities rely on more rest to accomplish the attention to detail required.