Adds caching to compat helper