could we reuse this object so that we don't produce unnecessary garbage?

also please leave a note with explanation of what's going on here since it's not obvious.

otherwise looks good to me. please make the changes and merge it in.