This was probably an Analog short story. Plot involved infecting the dregs of society with nanotech that gave them motivation and valuable skills. There was an essential ethical component to this story: if someone is miserable, is it moral to give them a viable path to happiness?
The cure worked. I don't remember the decade, but how long has nanotech been around? My guess would be sometime in the last century.