remove unused key
Use thread dictionary of main thread to store the sharedManager.