Added a function which allows loading a key into NSData