Allow schema calculation to be lazy, but ensure its available on executors.