rewritten GLApiCache to make it accept varargs