API change.
Added CachedByteBuffer support.