[PATCH 0/5] Various cleanups to decrease amount of stack allocated buffers