Strategies for the manufacture of resistant starch