Make array power of 2 and do use AttributeKey.id() for calculate the index