Restructuring worker implementation to improve request performance