Hello,
Just to put some perspective on this, the only published randomized double-blind trial of any intervention in decompression sickness (DCS) was an NSAID (as an adjunct to recompression). I have attached the paper. We showed that divers who received the NSAID had equivalent final outcomes to those who received the placebo, but they required fewer recompression treatments to achieve full recovery or plateau in recovery. I think you can infer from this that an NSAID is very unlikely to materially affect your risk of DCS after diving, and may actually be beneficial if you develop symptoms.
As Boulder John pointed out, NSAIDS are potentially part of the care map in first aid for DCS, and may also be employed alongside other first aid strategies like 100% oxygen breathing when treating mild DCS without recompression. Choices of therapeutic intervention should always be discussed with a diving medicine physician. I don't share DDMs concern about masking of DCS symptoms (though this was a concept that received some attention in times gone by). I feel comfortable making treatment decisions based on history (especially given that pain is essentially a subjective symptom rather than a sign), so if pain partially resolved with use of an NSAID but still had the characteristics of DCS-related pain, it would be very unlikely to influence my treatment decisions.
Simon M