use caching for typesmart syntax
fix cache config
log hits and misses of cache