[Streams API] Add support for chunks with customized sizes