Massive performance fix using sealed shared scope.