When you do this you dynamically instantiate a string on the heap. Have you try having those as global constant ?