This cuts down 7 calls to free() to 1, when instantiating a new program. There are still many low-hanging fruits there.