refactor: add helper to build content addressable key for id tags cache