[IM] Introduce caching to IXPs and infrastructures to prevent needless database queries