Adds some caching to the compat helper