Tanlock Based Loop With Improved Performance