Add caching to the table details endpoint.