Reduce number of iterations

Always start from the previous index which had available space, and do it
directly whenever possible
Merge branch 'master' of github.com:kristrev/unique-indexes-ffs