Resistant starch formation