Modified custom binary port to have pre allocated buffer to avoid allocating huge
buffer to pass the write! procedure.