Find free keys instead of incrementing the last one for each new child