Caching message handling