Better integration of secure module and register