Minor optimization within `data.restore()`