Write pointers intead of copying all entries one by one from g_contexts into g_write_contexts.