Reduce memory consumption by reducing redundant arrays