Use ByteArray* rather that File* objects to avoid disk cleanup and IO.