Performance Improved. First row is processed once