title: AWS Lambda - Java static initialization
body: <p>Inside AWS lambda function (written in Java) I want to use AsyncHttpClient (<a href="https://github.com/AsyncHttpClient/async-http-client" rel="nofollow noreferrer">https://github.com/AsyncHttpClient/async-http-client</a>). 
  Unfortunately it takes around 500 ms to create an instance of this object.. (but I still like it, please don't advice me to change the http client). </p>
  
  <p>I was considering creating AsyncHttpClient in static initialization block. So maybe it will be executed once by AWS and than the snapshot would be cloned for the every AWS Lambda execution. Am I correct ? </p>
  
  <p>When static block are executed in AWS Lambda ? </p>
  
  <ul>
  <li>Once and than the snapshot is cloned to every AWS Lambda invocation</li>
  <li>or static block is executed for every Lambda execution separately (and it will not help to put creation of Http Client there)</li>
  </ul>
  
  <p>Thank you for help</p>