Old replacement logic with 16-bit key