Caffeine may increase pain tolerance, study finds