Fixed the memoization of static resources.