Security improvements on import/export.