speed up the case migration script