Sanitize code
Using buffer recycler to minimize memory allocation cost