Plastidic glucose-6-phosphate dehydrogenases are regulated to maintain activity in the light.