PLAT-5324 - More efficient implementation of time series sampling