Optimal unemployment insurance: transitional dynamics vs. steady state