Use an in-memory array, living in the background page for session storage.