Reworked API of data IO methods