In Bash I can do:
python3 -OO -m py_compile myscript.py
And build deployment zip with __pycache__ inside, for multiple scripts I can run:
python3 -OO -m compileall .
Executing this in the same underlying AMI image.
Is it wise for AWS Lambda performance improvement?