faster way to allocate bytes