Efficiently store time series data in redis