Attempt to add caching to pretty path helper.