recordCache array must be initialized to empty array