I don't know why we're calling the USSR socialist; is it because they said they were socialist? There are plenty of dictatorial regimes that call themselves democratic republics, too. The USSR was structured like one massive corporation: Everything was owned by the government and the government bureaucracy functioned much like a corporate bureaucracy.
Libertarian socialists sometimes call states like the USSR state capitalist, because economic activity is still dictated by a top-down hierarchy allocating capital and exploiting workers.
Optimal is not the word you want to use, by the way. Not even free markets are optimal, that's why economists talk about 'market failures'.