Made array-cache less memory intensive