Minor optimizations for the fast XRF linear fit.