Fix errors in store cache. Add debug logging.