#10 Added caching to indexedDB
#10 Refined caching