public function scripts()
    {
        $scripts = array_map(function ($scriptData) {
            /* @var $scriptData array<string, mixed> */
            return new Script(
                $scriptData['full_path'],
                $this->bytesToMb($scriptData['memory_consumption']),
                $scriptData['hits'],
                new \DateTimeImmutable('@' . $scriptData['last_used_timestamp'])
            );
        }, $this->data['scripts']);
        return new ScriptCollection($scripts, $this->calculateCacheSlots());
    }