updating the cache mediator to handle concurrent requests.

Changes made

1. removed dummy caching when request comes
2. added read write locks for cache.