getById instead of getByIdSync
removed optional id from domainCAche
cache.tryAdd instead of .add