Performance issue when build side table has keys with the same value