What I did in the Entity class was cache the method names in a static property, and check if there was anything there before extracting the methods again