I'm not sure about the ibuprofen, but as someone with Non Verbal Learning Disability, anxiety/depression and possible ADHD, I find caffeine to have a very powerful effect on me, both positive if used properly and negative if used improperly.
I find that on the right dosage my powers of concentration are VERY strong (it is a performance enhancing drug after all) and I think for those of us with sensitive neurology it might not be placebo that it could be helping us with our AHDH or disabilities.