Do replacements in memory for files that are already open
Add way to force replacements to be done in memory instead of on disk