cache middleware paths, huge improvement for response times