Use modified Spark broadcast interface to cache intermediate information.