Perpare to use HeapByteBuffer instead of unsafe due to RowBatch rdd's caching