Added support for cache hit counter
Added logging of caught exceptions