[TASK] Improve ClassCacheBuilder!

Change-Id: I11183854e30b0c14259fba2ea9a4d201cc1f0f91
Reviewed-on: https://review.typo3.org/25031
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer