It will be in the "key" anyway since the literal values are embedded in the C code.  Therefore if those change, the hash of the code will change.

Also adding those before the c_code() method, will lead to trouble when you unpickle the graph on a different machine with a different GPU that does not have the same limits.