Speed-up get_addresses_by().