My doctor once recommended a simple exercise where I sit on a chair and just extend my leg out straight 20 times on each side. I do this before and after any type of exercise. Sometimes on a long ride, I will take a break and do it as well. It doesn't alleviate all knee pain, but I know that it makes my knees a lot less tight. Might be worth a shot!