Add macro for file size determination.
Fix positioning after save.
Optimize chunk save buffers for multiple insert/erase operations.