Put metadata in cache as well, rather than in session