Add document map whose key is document's id rather than file name. This does not take much memory because its elements(document object) are already stored in another document map whose key is file name and this new map only contains key and reference of document object