Use pymongo instead of mongoengine to cache routes