[cache] replace plain python dict with in-memory session cache [rejected]