Use getFromKeyFields instead of getForFields where possible
Lookup by key_name is a lot faster than doing a query, so if possible
the use of getFromKeyFields is preferred over getForFields.
Patch by: Sverre Rabbelier
# test settings file with no errorsfoo = 3bar = foo