fix caching to handle multiple request at the same time.