caching mapped api routes with nedb