PERF: stop allocating the string "id" over and over
Merge pull request #17658 from SamSaffron/optimise_memory

PERF: stop allocating the string "id" over and over