switch to a byte[] for data storage, switch api's to primitives for java
primitive types.