sharedStore method is now thread-safe