Cary is working with a developer to build housing that will remain affordable to families for decades.