Map instead of a vector for peer's inbox/outbox
Store peer state in an atom
Compute start + end slice indices for each file
Calculate writes necessary for a piece