Hi Mark,
Yes, you may experience transients when setting/resetting the line direction. When you set the line direction, it should stay set until the board is power-cycled, reset, or the line directions are reset. You should only need to set the directions once at the beginning of your code. It should not need periodic resetting unless the board itself is power cycled/reset.
Thanks,
Sal