Would it be possible to store hashes generated in a file, then brush through them to find out if they are under the target? I have been wondering if it would be possible to generate hashes, store them in a file, then use them as hashes when mining. When you would mine, you would not generate the hashes, but instead, just compare them to the target. This would be much more efficient, right? Anyway, here is some psudo python code i made up:

import hashlib
while True:
    hash = hashlib generate random hashes
    file = open('hashes.txt', 'w')
    file.write(hash)


or something like that.
While this certainly could work, the chances of the hashes ever being valid are next to zero.

The reason is, the hashes must not only meet the target requirements, but they must also be a valid hash of the block header, which changes with each block.