[STORE] Fold two hashFile implemenation into one