OK, the whole story.
I am passing file paths in the loop from the main script through several levels of script calls. In the bottom I read files and process.
Sinse main script is also looped, I want to do something like to store files in array of arrays once and read from these arrays instead of reading from files which should be much faster.