Speeds up the interpolation function.