modifying a copy of `session_params` when setting default `autoflush` value