Performance improvement

It is not necessary to load the whole version history to restore
the last one. total=2 is enough to do the job.

Change-Id: Id739b8765aa90d89c66bde351dcfa9fb28820c27