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