Performance optimization

Performance optimization of some play methods.
The most important is the first commit by Nov 11, "avoid pointless loading the whole class definition" which speeds up our applications by ~15%. 
@asolntsev  why did you replace one for loop with two?