improve speed of finding last revisions