Release n^2 memory asap