Classification curation refactoring, hopefully performance improvements; added SQL_NO_CACHE to AR lookups