cache glm in linear_model object