Refactored scratchpad service to hold a data cache.