Small optimization by using clojure.core.reducers.