Optimized stage state string/restoring
Tweaks to snapshot storage. Better repo id generation