This applies to both PrescribedRadiativeFluxes and CoupledRadiativeFluxes:
When the driver has the necessary fields to update the cosine zenith angle, the update function is called in a way that allocates an intermediate surface field. The driver should be able to update cosine zenith without the allocations.