Try to use gpu memory cache to improve performance.