They are not as complicated as you think. They don’t retain your ID, they simply OCR the license number and check against a known list of offenders.
Dispensaries, nightclubs: many if not most all retain information parsed from the AAMVA-encoded text within the PDF417 barcode on the back.
Most of these devices aren't using OCR, either, because why would you when you have a 2D barcode standard?
https://patronscan.com/id-scanner-for-bars
I have no idea where GP lives in that this information wouldn't be retained for some reason (in the US.)