improving performance of the fuzzy function by allowing state between calls