Reworked message get to remove unneeded SQL call by caching the result.