Getting smart about subsidies