make load_queued_keys more robust