Needed to empty in-memory array before each retrieval