Avoid killing textures unless we have several mb.
Merge pull request #7209 from unknownbrackets/texcache

Avoid killing textures unless we have several mb