I don't like all these side-effects in a const getter function