Caffeine never really affected me. I still drink a coffee when I need to focus or stay up but it's mostly symbolic, to tell my brain "time to wake up". In the same manner pajamas help you sleep, the mental correlation of wearing pajamas and sleeping helps your brain realize it's time for bed. If that makes any sense.