Every once in a while try giving up caffeine for a few weeks.
You might find after a few days that you have more energy and better sleep than when you were drinking coffee.
You can also try skipping coffee every other day or every third day if you really need that experience.
I’ve found that after a few days of skipping coffee I fall asleep within a few minutes of hitting the bed and my quality of sleep is so much better.