I have never realized that until now, but couldn't we make all these variables constants, using `const`? (I am not sure it is supported in Cython though.)