If you're having to take such drugs as NSAIDs on a regular basis, then there's either something wrong with you, or you're training too hard/frequently, etc. in which case you shouldn't be training
It's also *imperative* to understand, that taking NSAIDs prior to, during or directly after exercise, especially if you have been sweating or riding in warm or hot environment can lead to kidney failure and/or death.
These drugs shouldn't be thought of as "magic" and shouldn't be used unless there's something wrong.