some cleanups and in-memory storage of keys is xored with runtime generated random values