diff --git a/aeron-driver/src/main/java/io/aeron/driver/MediaDriver.java b/aeron-driver/src/main/java/io/aeron/driver/MediaDriver.java
index <HASH>..<HASH> 100644
--- a/aeron-driver/src/main/java/io/aeron/driver/MediaDriver.java
+++ b/aeron-driver/src/main/java/io/aeron/driver/MediaDriver.java
@@ -1937,13 +1937,18 @@ public final class MediaDriver implements AutoCloseable
                     countersValuesBuffer(createCountersValuesBuffer(cncByteBuffer, cncMetaDataBuffer));
                 }
 
-                EpochClock counterEpochClock = () -> 0;
-                long freeToReuseTimeoutMs = 0;
+                final EpochClock counterEpochClock;
+                final long freeToReuseTimeoutMs;
                 if (counterFreeToReuseTimeoutNs > 0)
                 {
                     counterEpochClock = epochClock;
                     freeToReuseTimeoutMs = Math.min(TimeUnit.NANOSECONDS.toMillis(counterFreeToReuseTimeoutNs), 1);
                 }
+                else
+                {
+                    counterEpochClock = () -> 0;
+                    freeToReuseTimeoutMs = 0;
+                }
 
                 final UnsafeBuffer metaDataBuffer = countersMetaDataBuffer();
                 final UnsafeBuffer valuesBuffer = countersValuesBuffer();
[Java] Avoid allocating lambda unless required.