cache string allocations in glGetString and eglQueryString