Data streams reduction via functional time series analysis