Scaling the data values on the fly