I would say that for most application it is better store everything in a single file. However when APC/APCu or similar fast memory storage is available it may be better to use classname as key.