Instead of storing intermediate results do the rechunking in a single pass directly from src chinking to dst chunking.
Instead of storing intermediate results do the rechunking in a single pass directly from src chinking to dst chunking.