store message to cache and retrieve it on message.