I agree, but do not consider myself knowledgeable enough in the matter to actually think about a solution. Instead I think a lot about hacking this for myself (when I was in high school, back when we used to ride a t-rex to get to school) and for kids that I meet, friends' children etc.
The optimal strategy that i've found is to challenge the child until the 7th grade with after curriculum activities, and then at 7th grade to start avoiding school as much as possible while still attending for the social benefits.
this can be done by participating in special programs that vary from school to school but common examples are teaching the kid math after school that he may take the final exams by 9th grade and starting a university degree in a high school / university combined program.
This way the student can avoid roughly 50% of high school while still getting the social benefits of making friends and getting used to being around people, yet get 50% of his time back so he can invest it in real education.