Revert "Add support for custom buffer sizes."

This reverts commit 485fe19682cdeea48647bd2e54ba2df560182b32.