Caching middleware,better config,cleanup...