gen_uni: make auto generation take into account access speed too