Why we can not have it return int here and so remove all the AtomicInteger usage in OpenSslEngine ? This will reduce object creation a lot and is also cleaner.