[~TASK] Optimize performance of AOP proxy class building
This introduces an intelligent caching mechanism which
speeds up proxy class building in the AOP framework.
Also includes a few cosmetic changes and minor improvements
in the Cache File Backend.
Relates to: #13703