Moving finalization of keyStoreKey setting to the end of the setter

There were some state issues inside the setter itself, where the "cached" key setting (`_keyStoreKey`) needed to hang around until the end.