REFACTOR: Harden API for null args.
CLEANUP: remove unwanted matrixssl declaration