Description
Rust limits file I/O to the main thread, causing contention if multiple worker threads want to read a file. Therefore, instead of reading the .wasm binaries each time we spin up a new task, we should instead read the contents of the .wasm files ONCE and store them locally so that worker threads can simply borrow them.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- no more file I/O initiated by worker threads
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist