filehash: move to separate allocation