Added optimizations to squared loss updates.