used shareable byte array implementation