Swap MessageCache::get closure to global function to fix segfault

Stopping Database Dumps from running

Change-Id: I1b34716cd981acc72ab4f3ad0036620fb1d56a58