It seems the problem is not with the costs of production but rather maturity of the country that wields the power over the resource, whether it understands that a) they are largely dependant on it, b) it is not given that tomorrow the prices will be the same, c) it will run out some day and d) it is easy to spend money now but actually you have to be frugal to save them for when it runs out.
Their huge savings is the combination of saving but also very high cost of living & taxation. The state provides a lot but also places high taxes on everything.
I live in Alberta where we have relatively low taxes and no oil savings. We've been boom/bust for our entire existence, but one huge difference - we've subsidized huge parts of the entire country during those good times. Those transfer payments add up to an incredible amount of money.