speedup by doing chol earlier