diff --git a/kite-morphlines/kite-morphlines-core/src/main/java/org/kitesdk/morphline/stdlib/PatternNameMatcher.java b/kite-morphlines/kite-morphlines-core/src/main/java/org/kitesdk/morphline/stdlib/PatternNameMatcher.java
index <HASH>..<HASH> 100644
--- a/kite-morphlines/kite-morphlines-core/src/main/java/org/kitesdk/morphline/stdlib/PatternNameMatcher.java
+++ b/kite-morphlines/kite-morphlines-core/src/main/java/org/kitesdk/morphline/stdlib/PatternNameMatcher.java
@@ -168,7 +168,7 @@ final class PatternNameMatcher {
       if (cacheCapacity < 0) {
         throw new IllegalArgumentException("Cache capacity must not be negative");
       }
-      this.cache = cacheCapacity > 0 ? new BoundedLRUHashMap<String, Boolean>(10000) : null;
+      this.cache = cacheCapacity > 0 ? new BoundedLRUHashMap<String, Boolean>(cacheCapacity) : null;
     }
     
     @Override
yet more optimization of performance of removeFields and removeValues morphline commands