Use disk for caching data when converting

Fixes the problem of failing memory allocation on low-level VPS