sophia: validate log key before read