On Dwork's accessory parameter problem