Revert "Add support for custom buffer sizes."

This reverts commit b834da26f4bde0c5f4ca4ee4495cc4c5feb3591f.

Change-Id: Ide139850316eec9f3d5a113e02dac929358e7d0b