The fix #512 broke the fix #490. This second fix, improves the virtual attribute cache, to get the same improvement of performance obtained with #490 test case.

https://fedorahosted.org/389/ticket/512

https://fedorahosted.org/389/attachment/ticket/512/0003-Ticket-512-improve-performance-of-vattr-code.patch