Merge changes from topic "keystore-rc"

* changes:
  Replace cast operator with getValue() for key store return codes
  Check key store result with isOk() instead of casted value
  Use stream operator to report result code