improve static instances, kv and cache