save a getuid() call each loop