Fixed incorrect Integer casting in recent cache_key changes