Refactored new middleware to make it easier to read
Refactored helper function out into utils
Slight delay added to memorycache to avoid race conditions
Added simple circuit breaker
Using circuit breaker in service interaction
Passing config through to get then cache
Updating tests to work with circuit breaker
Further protection against race condition with default values