Optimize remember_me functionality