Increased size of gc_ans and added a runtime safety check