Upgrade: calculate the registry of operations only once.