Dramatically increase performance. BIG LESSON

Do not write to buffer on the fly!