Improvement to Consumes Deserialization

Related: #713 and #657
doesn't it lead to memory leaks?