Make kwapply behave when called multiple times