move cache in operator/prmitives defines in loader to CompilerState