Improve byte array management.