Walmart juggles risk and rewards