You could use a series of Maps instead of a series of arrays.