Simplify show-diff cache entry name handling.