implemented cache for messages and keys