Makes getFileByHash O(1) operation