i.e. If I vaporize cannabis before going to bed, I may not remember my dreams the next morning.

What about other substances like caffeine? Any personal experiences? Links?