Use the NumericExtensions package and cache the linear predictor.