Optimizing participant ::get_last_consent() and ::get_last_written_consent() methods