in reply to speed issues
You could then revise your code to go through each file's @workingdata once, rather than the current 24 times.