Faster dynamic file expansion