Uncertainty, Optimal Specialization and Growth