Efficient upscaling of ocean biogeochemistry