Many districts have concurrent-enrollment programs with area colleges (community colleges or 4-year colleges). Here it's quite simple: when DS maxes out the math at the HS, he will attend the college for math, on the district's dime.

Transportation, of course, will probably be on me. There will be things to iron out...