Change most statics to consts

Only TEST_DATA is left as a static value for testing lifetime.