Actually use the cleaned closure in foreachPartition