Use read-tree and checkout-index more efficiently