refactor: remove unneeded intermediate variable in id tags cache code