Dictionary> poolCollection; $maxInstanceCount = 6000 $parameter = get bytearray size # bytearray size is the key here if (key not in dictionary) { create new ParameterizedPool($parameter, $maxInstanceCount) add to poolCollection }