key and section should be const (previous function too), not just prefix.