fotos: allow caches to store data in mongo