I think the classification is in the eye of the observer. If one optimizes for longevity or awareness, those substances are poisonous. If you’re driving a truck with 30 people in the back and you try to stay awake for the last hour, caffeine may be a vital substance.