adding time based cache for phptypes to reduce calls on reference resolving which reduce freeze
implemented cache hit for phptypes, so we dont remove previously used items on expire checks