calendar: fix saveTodo() performance