MSINM-65: Implemented caching of messages and cache eviction