cache network to_i for sorting