setKeyFields once, on load