Update gClassFoldersMain.gs

Dealt with extra calls to CacheService and DocsList in a variety of places to better optimize for large scale use.