Write to cache on sigIn and read cache on start-up