Optimize Tattva classes.