Optimized FE_RESET and FE_FETCH