The current wisdom is not to stretch cold muscles. you would probably be best off by riding lightly for a mile or two to warm up the legs, then stop and do some stretches.
I have issues with one of my knees and find that if I stop about every 10 miles or so and do a few stretches, I have far less trouble.