Use dict function instead of dict comprehension;
Differentiate between unspecified and None values in the cache