I read in Bicycling magazine long ago that you can clean the lenses with gel toothpaste to help prevent fogging.
I don't wear corrective lenses and haven't ever tried it. The safety glasses I'm wearing nowadays don't have a problem with fogging.
What about prescription inserts in some cycling specific sunglasses?