Seems like you are trying to use lambda for stateful session, whilst they are best for stateless compute. Is there any chance you can reinvestigate your architecture to see if that is really needed or can it be avoided through a redesign (eg, through client side caching)? Without knowing the overall use case, it is hard to suggest a better architecture, but I’d suggest giving it a serious thought.
If it must be done, best way to approach it is to push the session variables into the next layer, hence the other suggestions above to persist it in DB. For such simple name value pairs, obviously a no-sql db makes a good choice.