performance improvements (cache the hash for TablePotentials)