security: Fix bug in PrivateKeyStorage: for inline helpers, need to return the result.