Functional implementation of FileStream in Store