You'd probably also have to reform family life for many individuals as well, not just elementary school. Are they from a single parent household? Do they have books at home? Do their parents read to them? Do their parents help out with homework and make sure their children are doing their homework?
School is not the only aspect contributing to someone's education. Parental involvement is also a huge factor and cultural differences contribute here.
See my previous comment about the importance of culture and values and their impact on success here: https://news.ycombinator.com/item?id=20810810
Personally, I think on-line schooling is a better option. Internet is becoming broadly available, and it seems that serving every one the same curriculum (albeit with some adaptivity to what a student is doing better or worse on) seems the most viable way to make sure each student gets the same education, I would think. Then maybe provide a smaller staff at local schools with tutoring and counseling.
Online education does a good job [2], and has had good results, even in the third world [3] [4]. It of course needs further development, but I see no reason why it couldn't be a strong contender to mitigate this issue.
[0]: https://slate.com/human-interest/2014/02/how-the-lefts-embra...
[1]: https://www.npr.org/sections/ed/2016/10/06/496411024/why-bus...
[2]: http://news.mit.edu/2014/study-shows-online-courses-effectiv...
[3]: https://borgenproject.org/online-education-in-developing-cou...
[4]: https://www.onlinecoursereport.com/democratizing-education-o...
[0]: https://dyske.com/paper/1258, https://www.jstor.org/stable/2547418