Avoid create a memory frame when using global constants [ci skip]