Key to immune system's memory revealed