NXP-10779: initial compute the size of archived versions
NXP-10779: handle restore to version