-Remove all dynamic allocations, hence remove cook_decode_close() which was basically