RavenDB-1867 - fixing performance issue in GetItemsToReduce