Added full type coverage to the input variety test.
Improved cache serialization speed by 35% and deserialization speed by 90%.