I added a different approach that adds hashes next to the cached files so that we can compare if hash(profile) == hash(cache) and if not re-generate.
I added a different approach that adds hashes next to the cached files so that we can compare if hash(profile) == hash(cache) and if not re-generate.