You’re likely referring to “The Memory Thief” (2010)—no film titled “The Memory Spy” exists from that year.
Cast of The Memory Thief:
Let me know if you had a different film in mind!