HCOLL-167 added support to auto resize the buffers.