Make sure to set aliases when caching is enabled.