with open('words.txt') as inf:
    words = set(wd.strip() for wd in inf)
interlocked = [word for word in words if word[::2] in words and word[1::2] in
    words]
How to optimize this Python code (from ThinkPython, Exercise 10.10)