Cache pointer to evaluated scene datablock on relations build time, that pointer never changes after that.