Speed up reflog pruning of unreachable commits