Is the Text really important?  Would BytesWritable perhaps fit what you are doing here better?