Don't write again to cache in the onfinish event if we already loaded from the cache