Cache consumer objects in the server middleware

Cuts down on requests to the database to look up consumers.