Using immutabledictionnary for memory store