Use IOBuffer instead of memio/IOStream