We were using a hash based on the path, but it's better to have something that's constant even if the path chnages.
Port to c++ and use new APIs.