Temporary fix to the open file limit problem. Halved the number of opened files.
Still need to implement a proper solution which only opens the raf files when needed.