Use a temporary file to hold share results, so that they can be large.

Fixes #15