Cache entire script for fast rendering