The difference between failed states and thriving nations is cost effectiveness.