Optimization in KDE Base
Storage: Create a type cache
This class, caches the types for a particular resource. This is
especially useful cause we often request the type multiple times when
performing the domain/range checks.
We currently only store the types of the last 20 resources.