Simplify Array encoding