improve caching using soft references to keep as many elements as possible
Authored by: thibautd 2014-07-08
Parent: [r29593]
Child: [r29595]