docs: def _write_secedit_data(inf_data):
      '''
      Helper function to write secedit data to the database
      '''
      # Set file names
      f_sdb = os.path.join(__opts__['cachedir'], 'secedit-{0}.sdb'.format(UUID))
      f_inf = os.path.join(__opts__['cachedir'], 'secedit-{0}.inf'.format(UUID))
  
      try:
          # Write the changes to the inf file
          __salt__['file.write'](f_inf, inf_data)
          # Run secedit to make the change
          cmd = ['secedit', '/configure', '/db', f_sdb, '/cfg', f_inf]
          retcode = __salt__['cmd.retcode'](cmd)
          # Success
          if retcode == 0:
              # Pop secedit data so it will always be current
              __context__.pop('lgpo.secedit_data')
              return True
          # Failure
          return False
      finally:
          # Cleanup our scratch files
          if __salt__['file.file_exists'](f_sdb):
              __salt__['file.remove'](f_sdb)
          if __salt__['file.file_exists'](f_inf):
              __salt__['file.remove'](f_inf)