After further discussion, we decided that an additional map for in-memory files adds more complexity than value. For now we will stick with the current implementation and improve the comments.