Reduce - compress in a single if