Work in progress for speeding up the squeeze function
Cache for value templates