For the first observations, write
By Gaussian conjugacy for a normal linear model, the prefix posterior is
Compute a Cholesky decomposition of once. If is row of the design matrix, then
The Rank-one Cholesky update obtains a triangular factor from in operations. Two triangular solves give , and, for , another solve gives
The initial factorization costs and all updates and samples cost . This is within the requested bound.