Fix a couple of bugs.

Read file before it is closed.
Remove incorrect slow retrieval defense.