Refactor of proxy storage.

Avoids generated lots of temporary files unnecessarily.
Resolves #6
Probably.