made Gemini's method and property cache's thread safe