Memory consumption fix for large resource packages