Reduce stream data to a single value