Fixes #6204: Fast building of remember me table