Queue hints missing after reboot

Dear folks!,

I have a question that has likely been answered before, but I’m using the wrong search terms.

Basically, we are using device/user mode with agent logon, and queues with dynamic members.
We have a BLF key for login/logout of the queue with *45125 as the number and a BLF subscription to 45.
This works really well so far.
However, when Asterisk (or the whole server) is rebooted, these queue hints are missing (core show hints) until the user logs off and back in with *12/*11.

I was thinking about a startup script that reads the AMPUSER & DEVICE families from BDB and then generates the hints properly according to what user_login_out.agi does, but there has to be a better way.

Anyone ever solve this properly?