Improve swid_measurement endpoint

Do a single query on the tags initially and read from the cached result afterwards.

See https://github.com/tnc-ba/strongTNC/commit/81fbe293d51f0dbe57c9da3946c4b5a206efbaee#commitcomment-6448018