Reducing synchronized block in ServletController class