Can't wait for your pain medication to kick in? Take it with a cup of coffee. Caffeine helps your stomach absorb the medication more quickly. In fact, many pain killers contain some caffeine. If you have a migraine, caffeine will do its own part in relieving your symptoms. It affects the cerebral blood vessels responsible for your pain.