Making smarter investments in education