Modified caching system to ngStorage.