Basic optimization of scaleRaster