User proper cache implementation instead of IndexMap
Currently the session cache uses IndexMaps, which basically operate according to the FIFO principle. That's bad caching, especially for a chat application where sessions from closer friends will be used more often than others. Using something like an LRU cache will greatly improve performance for most use cases I would imagine.
This seems like a good contender: https://crates.io/crates/lru