Compute global configuration only once

Ticket:	#4929
Use actual tag value for portal instead of unicode repr

Ticket:	#4929